package com.pzb.page.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.io.Serializable;
import java.util.List;

/**
 * 页面管理对象 pg_page
 * 
 * @author pzb
 * @date 2021-09-17
 */
public class PgPage implements Serializable
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Long id;

    private String  pageName;

    /** 页面背景颜色，默认为白色 */
    private String backgroundColor;

    List<PgPageItem> itemList;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getPageName() {
        return pageName;
    }

    public void setPageName(String pageName) {
        this.pageName = pageName;
    }

    public String getBackgroundColor() {
        return backgroundColor;
    }

    public void setBackgroundColor(String backgroundColor) {
        this.backgroundColor = backgroundColor;
    }

    public List<PgPageItem> getItemList() {
        return itemList;
    }

    public void setItemList(List<PgPageItem> itemList) {
        this.itemList = itemList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("backgroundColor", getBackgroundColor())
            .toString();
    }
}
